set(TARGET_NAME 03)

find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)

add_executable(${TARGET_NAME} main.cpp rasterizer.hpp rasterizer.cpp global.hpp Triangle.hpp Triangle.cpp Texture.hpp Texture.cpp Shader.hpp OBJ_Loader.h)
target_link_libraries(${TARGET_NAME} ${OpenCV_LIBS} Eigen3::Eigen)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/models DESTINATION ${CMAKE_CURRENT_BINARY_DIR})